<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">

$(document).ready(function(){
	
});
function frmChange(me){
	$("#rm_no").val($(me).val());
	$("#frmChange").submit();
}

//액션 처리
function doAction(type){
	
	if('1'==type){
		if(!confirm("예약취소하시겠습니까?")){
			return fasle;
		}
		
		$("#ref_form").show();
		
		if($("#account_no").val()==''){
			alert("계좌번호를 입력하세요");
			$("#account_no").focus();
			return false;
		}
		
		if($("#account_usr_nm").val()==''){
			alert("예금주를 입력하세요");
			$("#account_usr_nm").focus();
			return false;
		}
		
// 		alert($("#ref_bankuname_ck").length);
		if($("#ref_bankuname_ck:checked").length<1){
			alert("예약자명과 예금주명이 반드시 같아야 합니다. 확인 여부를 체크해 주세요.");
			return false;
		}
		
		//예약취소
		$("#frmdata").attr("action","./pere706_1T.do");
		
// 		return false;
	}else if('2'==type){
		//입금확인
		$("#frmdata").attr("action","./pere706_2T.do");
	}else if('3'==type){
		//대기시간연장
		alert('예약현황으로 넘어감');
		return false;
	}
	$("#frmdata").submit();
}

//데이터 복구
function recoveryData(type){
	location.href="./pere1400T.do?p_id=${param.p_id }&rm_no=${reservationInfo.rm_no }&rm_status="+type;
}
</script>

<form action="./pere502Q.do" method="post" name="form1" id="frmdata">
<div style="display: none;">
<input name="p_id" value="${param.p_id }" type="hidden"/>
<input name="rm_no" value="${reservationInfo.rm_no }" type="hidden"/>

</div>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td background="/usr/images/mypage_m01bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="40%"><img src="/usr/images/res_m01.gif" width="262" height="22"></td>
                <td width="60%" align="right"><%@ include file="/WEB-INF/jsp/usr/pe/re/pere_top.jsp"%></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td height="20" background="/usr/images/res_mbg.gif">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%">&nbsp;</td>
          <td width="50%" align="right" style="padding-right: 30px;"><table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="70" align="left"><img src="/usr/images/reservation_icon_home.gif" width="47" height="31"></td>
              <td><IMG SRC="${pensionInfo.p_logo }" BORDER="0" height="30"></td>
            </tr>
          </table></td>
        </tr>
      </table>

      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><span class="blueb">※</span><strong> 객실예약 확인</strong>
          </td>
        </tr>
        <tr>
          <td height="5"></td>
        </tr>
        <tr>
          <td>
<!-- 예약객실 목록 -->
<table width="100%" border="0" cellspacing="4" cellpadding="1"
	bgcolor="#edecec">
	<tr>
		<td bgcolor="#FFFFFF"><table width="100%" border="0"
				cellspacing="0" cellpadding="0">
				<tr align="center">
					<td width="10%" height="35" bgcolor="#fc636a"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">
									<input name="allChk" id="allChk" type="checkbox" onclick="chkAll();" checked="checked" style="display: none;" />
									객실명
								</td>
							</tr>
						</table></td>
					<td width="14%" bgcolor="#fc636a" class="borderlw"><table
							width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr align="center">
								<td height="18" class="whiteb2">이용일자</td>
							</tr>
							<tr>
								<td height="1" bgcolor="#FFFFFF"></td>
							</tr>
							<tr align="center">
								<td height="16" class="whiteb2">예약일자</td>
							</tr>
						</table></td>
					<td width="9%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">이용기간</td>
							</tr>
						</table></td>
					<td width="10%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">기준/예약</td>
							</tr>
						</table></td>
					<td width="13%" bgcolor="#fc636a" class="borderlw"><table
							width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="18" colspan="2" align="center"><table
										border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="whiteb2" style="padding-top: 2px;">예약인원</td>
										</tr>
									</table></td>
							</tr>
							<tr>
								<td height="1" colspan="2" bgcolor="#FFFFFF"></td>
							</tr>
							<tr align="center">
								<td width="50%" height="16"><table border="0"
										cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="whiteb2" style="padding-top: 2px;">성인</td>
										</tr>
									</table></td>
								<td width="50%" class="borderlw"><table border="0"
										cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="whiteb2" style="padding-top: 2px;">아동</td>
										</tr>
									</table></td>
							</tr>
						</table></td>
					<td width="11%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">기본요금</td>
							</tr>
						</table></td>
					<td width="11%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">추가요금</td>
							</tr>
						</table></td>
					<td width="10%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">할인요금</td>
							</tr>
						</table></td>
					<td width="12%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">합계</td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="1" colspan="9" bgcolor="#FFFFFF"></td>
				</tr>
				<c:set var="totalPayD1" value="0"/>
				<c:set var="addPay" value="0"/>
				<c:set var="totalPayD2" value="0"/>
				<c:set var="penalty_usr" value="0"/>
<c:if test="${list !=null && fn:length(list)>0 }">
	<c:set var="room_nm_tmp" value=""/>
	<c:forEach var="map1" items="${list}" varStatus="status">
<c:set var="penalty_usr" value="${penalty_usr +map1.penalty_pay }"/>
				<c:set var="totalPayD1" value="${totalPayD1 +map1.pay-map1.dc_pay }"/>
				<c:set var="addPay" value="${addPay +map1.pay_man_m }"/>
				<tr align="center">
<%-- 			<c:if test="${status.index==0 }"> --%>
<%-- 					<td height="30" bgcolor="#fefef6" class="borderbg" rowspan="${map1.rowspan }"><table --%>

						<td height="30" bgcolor="#fefef6" class="borderbg" ><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">
									<input name="idxs" value="${status.index }" type="checkbox" onclick="chkAllYn('M');" checked="checked"  style="display: none;"/>
									<input name="pr_nos" value="${map1.pr_no }" type="hidden"/>
									<input name="reservation_dts" value="${map1.reservation_dt }" type="hidden"/>
								</td>
								<td align="center" class="greenb2">${map1.room_nm } </td>
							</tr>
						</table></td>


<%-- 			</c:if> --%>

					<td bgcolor="#fefef6" class="borderlbg"><table width="100%"
							border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td align="center" class="greenb2">
<%-- 								${fn.substring(map1.nowdt,,4) } --%>

${fn:substring(map1.reservation_dt,2,4) }년
${fn:substring(map1.reservation_dt,4,6) }월
${fn:substring(map1.reservation_dt,6,8) }일
								</td>
							</tr>
							<tr>
								<td height="1" bgcolor="#c0c0bf"></td>
							</tr>
							<tr>
								<td align="center" class="greenb2">
${fn:substring(map1.nowdt,0,4) }년
${fn:substring(map1.nowdt,4,6) }월
${fn:substring(map1.nowdt,6,8) }일
								</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">1박</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">${map1.use_man_cnt }/${map1.totalMan }</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table width="100%"
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="30" align="center" class="greenb2">
									<!--0-->
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="50%" height="30" align="center"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.man_cnt }명</td>
													</tr>
												</table></td>
											<td width="50%" align="center" class="borderlg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.chi_cnt }명</td>
													</tr>
												</table></td>
										</tr>
									</table>
								</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.pay_man_m }" pattern="#,###"/>원
								</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.dc_pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><span id="total_price"><fmt:formatNumber value="${map1.total_pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
				</tr>
	</c:forEach>
</c:if>
<c:if test="${list ==null || fn:length(list)==0 }">
				<tr>
					<td colspan="10" style="text-align: center;height: 30px;">데이터가 없습니다</td>
				</tr>
</c:if>
			</table>
			</td>
	</tr>
</table>
<!-- 예약객실 목록 끝 -->

<!-- 취소객실 목록 -->
<c:if test="${cancelList !=null && fn:length(cancelList)>0 }">
        <tr>
          <td height="5"></td>
        </tr>
        <tr>
          <td><span class="blueb">※</span><strong>취소객실 목록</strong>
          </td>
        </tr>
        <tr>
          <td height="5"></td>
        </tr>
<table width="100%" border="0" cellspacing="4" cellpadding="1"
	bgcolor="#edecec">
	<tr>
		<td bgcolor="#FFFFFF"><table width="100%" border="0"
				cellspacing="0" cellpadding="0">
				<tr align="center">
					<td width="10%" height="35" bgcolor="#fc636a"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">객실명</td>
							</tr>
						</table></td>
					<td width="14%" bgcolor="#fc636a" class="borderlw"><table
							width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr align="center">
								<td height="18" class="whiteb2">이용일자</td>
							</tr>
							<tr>
								<td height="1" bgcolor="#FFFFFF"></td>
							</tr>
							<tr align="center">
								<td height="16" class="whiteb2">예약일자</td>
							</tr>
						</table></td>
					<td width="9%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">이용기간</td>
							</tr>
						</table></td>
					<td width="10%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">기준/예약</td>
							</tr>
						</table></td>
					<td width="13%" bgcolor="#fc636a" class="borderlw"><table
							width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="18" colspan="2" align="center"><table
										border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="whiteb2" style="padding-top: 2px;">예약인원</td>
										</tr>
									</table></td>
							</tr>
							<tr>
								<td height="1" colspan="2" bgcolor="#FFFFFF"></td>
							</tr>
							<tr align="center">
								<td width="50%" height="16"><table border="0"
										cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="whiteb2" style="padding-top: 2px;">성인</td>
										</tr>
									</table></td>
								<td width="50%" class="borderlw"><table border="0"
										cellspacing="0" cellpadding="0">
										<tr>
											<td align="center" class="whiteb2" style="padding-top: 2px;">아동</td>
										</tr>
									</table></td>
							</tr>
						</table></td>
					<td width="11%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">기본요금</td>
							</tr>
						</table></td>
					<td width="11%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">추가요금</td>
							</tr>
						</table></td>
					<td width="10%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">할인요금</td>
							</tr>
						</table></td>
					<td width="12%" bgcolor="#fc636a" class="borderlw"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="whiteb2">합계</td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="1" colspan="9" bgcolor="#FFFFFF"></td>
				</tr>
	<c:set var="room_nm_tmp" value=""/>
	<c:forEach var="map1" items="${cancelList}" varStatus="status">
		<c:set var="penalty_usr" value="${penalty_usr +map1.total_pay }"/>

				<tr align="center">

						<td height="30" bgcolor="#fefef6" class="borderbg" ><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">
<%-- 									<input name="idxs" value="${status.index }" type="checkbox"/> --%>
<%-- 									<input name="pr_nos" value="${map1.pr_no }" type="hidden"/> --%>
<%-- 									<input name="reservation_dts" value="${map1.reservation_dt }" type="hidden"/> --%>
								</td>
								<td align="center" class="greenb2">${map1.room_nm } </td>
							</tr>
						</table></td>


<%-- 			</c:if> --%>

					<td bgcolor="#fefef6" class="borderlbg"><table width="100%"
							border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td align="center" class="greenb2">
<%-- 								${fn.substring(map1.nowdt,,4) } --%>

${fn:substring(map1.reservation_dt,2,4) }년
${fn:substring(map1.reservation_dt,4,6) }월
${fn:substring(map1.reservation_dt,6,8) }일
								</td>
							</tr>
							<tr>
								<td height="1" bgcolor="#c0c0bf"></td>
							</tr>
							<tr>
								<td align="center" class="greenb2">
${fn:substring(map1.nowdt,0,4) }년
${fn:substring(map1.nowdt,4,6) }월
${fn:substring(map1.nowdt,6,8) }일
								</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">1박</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">${map1.use_man_cnt }/${map1.totalMan }</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table width="100%"
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="30" align="center" class="greenb2">
									<!--0-->
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="50%" height="30" align="center"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.man_cnt }명</td>
													</tr>
												</table></td>
											<td width="50%" align="center" class="borderlg"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.chi_cnt }명</td>
													</tr>
												</table></td>
										</tr>
									</table>
								</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.pay_man_m }" pattern="#,###"/>원
								</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><fmt:formatNumber value="${map1.dc_pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
					<td bgcolor="#fefef6" class="borderlbg"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2"><span id="total_price"><fmt:formatNumber value="${map1.total_pay }" pattern="#,###"/>원</td>
							</tr>
						</table></td>
				</tr>
	</c:forEach>

			</table>
			</td>
	</tr>
</table>
</c:if>
<!-- 취소객실 목록 -->

<!-- 부가서비스 예약 -->
<c:if test="${rtAddSvcList !=null && fn:length(rtAddSvcList)>0 }">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td><span class="blueb">※</span><strong> 부가서비스 확인</strong></td>
				</tr>
				<tr>
					<td height="5"></td>
				</tr>
				<tr>
					<td><table width="100%" border="0" cellspacing="4"
							cellpadding="1" bgcolor="#edecec">
							<tr>
								<td bgcolor="#FFFFFF"><table width="100%" border="0"
										cellspacing="0" cellpadding="0">
										<tr align="center">
											<td width="17%" height="35" bgcolor="#4da6fa"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">서비스명</td>
													</tr>
												</table></td>
											<td width="13%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">주문수</td>
													</tr>
												</table></td>
											<td width="41%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">요구사항</td>
													</tr>
												</table></td>
											<td width="13%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">가격</td>
													</tr>
												</table></td>
											<td width="16%" bgcolor="#4da6fa" class="borderlw"><table
													border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="whiteb2">합계</td>
													</tr>
												</table></td>
										</tr>
										<tr>
											<td height="1" colspan="5" bgcolor="#FFFFFF"></td>
										</tr>
	<c:forEach var="map1" items="${rtAddSvcList}" varStatus="status">
		<c:if test="${map1.as_status=='R'  || map1.as_status=='C' || map1.as_status=='B'}">
		<c:set var="totalPayD2" value="${totalPayD2 +map1.totalPay }"/>
		<c:set var="penalty_usr" value="${penalty_usr +map1.total_pay }"/>
		</c:if>
			
										<tr align="center">
											<td height="30" bgcolor="#fefef6"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">
		<c:if test="${map1.as_status=='R' || map1.as_status=='C' }">
														<input name="idxs2" type="checkbox" value="${status.index }" checked="checked"  style="display: none;"/>
		</c:if>
														<input name="as_nos" value="${map1.as_no }" type="hidden"/>
														${map1.as_nm }
		<c:if test="${map1.as_status!='R' }">
		<br/>(취소처리)
		</c:if>
														</td>
													</tr>
												</table></td>
											<td bgcolor="#fefef6" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.use_cnt }${map1.as_unit }</td>
													</tr>
												</table></td>
											<td bgcolor="#fefef6" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2">${map1.reg_msg }</td>
													</tr>
												</table></td>
											<td bgcolor="#fefef6" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2"><fmt:formatNumber value="${map1.as_pay }" pattern="#,###"/>원</td>
													</tr>
												</table></td>
											<td bgcolor="#fefef6" class="borderlg"><table border="0"
													cellspacing="0" cellpadding="0">
													<tr>
														<td align="center" class="greenb2"><fmt:formatNumber value="${map1.totalPay }" pattern="#,###"/>원</td>
													</tr>
												</table></td>
										</tr>
	</c:forEach>
									</table></td>
							</tr>
						</table></td>
				</tr>
			</table>
</c:if>          
<!-- 부가서비스 예약 끝 -->
          </td>
        </tr>
      </table>
<!-- rtAddSvcList -->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><table width="100%" border="0" cellspacing="4" cellpadding="1" bgcolor="#edecec">
              <tr>
                <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr align="center">
                      <td width="62%" height="35" bgcolor="#fafc98"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="dgrayb">구분</td>
                          </tr>
                        </table></td>
                      <td width="38%" bgcolor="#fafc98" class="borderlb"><table border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center" class="dgrayb">금액</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td height="1" colspan="2" bgcolor="#C0C0BF"></td>
                    </tr>
                    <tr align="center">
                      <td height="30" bgcolor="#fefef6" class="borderbg"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="greenb2">객실기본요금합계</td>
                          </tr>
                        </table></td>
                      <td bgcolor="#fefef6" class="borderlbg"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="greenb2"><fmt:formatNumber value="${totalPayD1 }" pattern="#,###"/>원 </td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr align="center">
                      <td height="30" bgcolor="#fefef6" class="borderbg"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="greenb2">추가요금합계</td>
                          </tr>
                        </table></td>
                      <td bgcolor="#fefef6" class="borderlbg"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="greenb2"><fmt:formatNumber value="${addPay }" pattern="#,###"/>원</td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr align="center">
                      <td height="30" bgcolor="#fefef6" class="borderbg"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="greenb2">부가서비스요금 합계</td>
                          </tr>
                        </table></td>
                      <td bgcolor="#fefef6" class="borderlbg"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="blueb"><span class="greenb2"><fmt:formatNumber value="${totalPayD2 }" pattern="#,###"/>원</span></td>
                          </tr>
                        </table></td>
                    </tr>
										<span style="display:none">
					<input name="usepoint" type="text" id="usepoint">
					<input type="checkbox" name="checkAllpoint" id="checkAllpoint" onclick="this.form.usepoint.value=mypoint">
					</span>
					                    <tr align="center">
                      <td height="30" bgcolor="#fefef6"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="greenb2">결제금액</td>
                          </tr>
                        </table></td>
                      <td bgcolor="#fefef6" class="borderlg"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="center" class="redb"><span id="total_payprice"><fmt:formatNumber value="${totalPayD1+addPay+totalPayD2 }" pattern="#,###"/></span>원</td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table>
      
<!-- 예약자 무통장 입금 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td><table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="10" height="20" align="right" valign="top"><table
							width="5" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#60C930" height="10"></td>
							</tr>
						</table></td>
					<td valign="bottom" class="padl5"><strong>예약자 정보</strong></td>
				</tr>
			</table></td>
	</tr>
	<tr>
		<td height="5"></td>
	</tr>
	<tr>
		<td><table width="100%" border="0" cellpadding="0"
				cellspacing="1" bgcolor="#d8d8d8">
				<tr>
					<td width="130" height="3" bgcolor="#60c930"></td>
					<td></td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">예약자명</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${reservationInfo.reservation_nm }
						<c:if test="${'A'==reservationInfo.add_type }">
						<span class="ptrend">[관리자]</span>
						</c:if>
					</td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">휴대폰</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${reservationInfo.r_phone1 }-${reservationInfo.r_phone2 }-${reservationInfo.r_phone3 }</td>
				</tr>
			<c:if test="${'Y'==pensionInfo.pickup_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">픽업요청</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">픽업장소:
						${reservationInfo.pickup }&nbsp;&nbsp;&nbsp;픽업시간: ${reservationInfo.pick_info }</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.end_time_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">펜션도착시간</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${reservationInfo.end_time } 
						<c:if test="${reservationInfo.pickup_yn=='Y' }">픽업요청함</c:if>
						<c:if test="${reservationInfo.pickup_yn!='Y' }"></c:if>
					</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.email_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">E - MAIL</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">
						<c:if test="${(''!=reservationInfo.r_email2 && ''!=reservationInfo.r_email1) }">
						${reservationInfo.r_email1 }@${reservationInfo.r_email2 }
						</c:if>
					</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.start_time_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">출발지역</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${reservationInfo.start_area }</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.etc_req_yn }">
				<tr>
					<td height="60" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">기타요청사항</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${reservationInfo.etc_req }</td>
				</tr>
			</c:if>
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">결제방법</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td>BANK
									<c:if test="${paramMap.pay_type=='' }"></c:if>
									<c:if test="${paramMap.pay_type=='' }"></c:if>
<%-- 									<c:if test="${paramMap.pay_type=='' }"></c:if> --%>
								</td>
							</tr>
						</table></td>
				</tr>
			</table></td>
	</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td><table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="10" height="20" align="right" valign="top"><table
							width="5" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#0099FF" height="10"></td>
							</tr>
						</table></td>
					<td valign="bottom" class="padl5"><strong>무통장 입금</strong></td>
				</tr>
			</table></td>
	</tr>
	<tr>
		<td height="5"></td>
	</tr>
	<tr>
		<td><table width="100%" border="0" cellpadding="0"
				cellspacing="1" bgcolor="#d8d8d8">
				<tr>
					<td width="130" height="3" bgcolor="#0099FF"></td>
					<td></td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">입금은행</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${reservationInfo.send_bank }</td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">입금자명</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${reservationInfo.send_bank_nm }</td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#FEFEF6"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">입금대기시간</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">
						<c:if test="${list == null || list[0].refunds_pay ==null }">
							미입금 취소 (
${fn:substring(list[0].nowdt,0,4) }-${fn:substring(list[0].nowdt,4,6) }-${fn:substring(list[0].nowdt,6,8) }
${fn:substring(list[0].nowdt,8,10) } :${fn:substring(list[0].nowdt,10,12) }:${fn:substring(list[0].nowdt,12,14) }
)
						</c:if>
						<c:if test="${list != null && list[0].refunds_pay != null }">
<span class="pld">환불액
							<fmt:formatNumber value="${penalty_usr }" pattern="#,###"/>원
(
${fn:substring(list[0].nowdt,0,4) }-${fn:substring(list[0].nowdt,4,6) }-${fn:substring(list[0].nowdt,6,8) }
${fn:substring(list[0].nowdt,8,10) } :${fn:substring(list[0].nowdt,10,12) }:${fn:substring(list[0].nowdt,12,14) }
)</span>
						</c:if>
					</td>
				</tr>
			</table></td>
	</tr>
</table>

<!-- 예약자 무통장 입금 끝 -->

<!-- 환불정보 시작 -->

<span id="ref_form" style="display: none"><br />
	<table border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="20" valign="top"><table width="5" border="0"
					cellspacing="0" cellpadding="0">
					<tr>
						<td bgcolor="#60c930" height="10"></td>
					</tr>
				</table></td>
			<td valign="bottom" class="padl5"><strong>환불정보</strong></td>
			<td valign="bottom" class="padl5">익일오전중에 단체 입금됩니다.</td>
		</tr>
	</table>
	<table width="100%" border="0" cellpadding="0" cellspacing="1"
		bgcolor="#d8d8d8">
		<tr>
			<td width="130" height="3" bgcolor="#60c930"></td>
			<td></td>
		</tr>
		<tr>
			<td height="30" align="center" bgcolor="#FEFEF6"><table
					border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td align="center" class="greenb2">입금은행</td>
					</tr>
				</table></td>
			<td bgcolor="#FFFFFF" class="padl30"><select name="account_type_nm"
				id="account_type_nm">
				<c:if test="${codeList04 !=null && fn:length(codeList04)>0 }">
					<c:forEach var="map1" items="${codeList04}" varStatus="status">
						<option value="${map1.code }">${map1.code }</option>
					</c:forEach>
				</c:if>
			</select> <input type="text" name="account_no" id="account_no"></td>
		</tr>
		<tr>
			<td height="30" align="center" bgcolor="#FEFEF6"><table
					border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td align="center" class="greenb2">예금주</td>
					</tr>
				</table></td>
			<td bgcolor="#FFFFFF" class="padl30"><table border="0"
					cellspacing="0" cellpadding="0">
					<tr>
						<td width="80"><input name="account_usr_nm" type="text"
							id="account_usr_nm" size="10"></td>
						<td><input type="checkbox" name="ref_bankuname_ck"
							id="ref_bankuname_ck"
							onclick="if(this.checked==true ) this.form.account_usr_nm.value='${reservationInfo.reservation_nm }'"></td>
						<td class="paddtop3">예약자명과 예금주명이 반드시 같아야합니다.</td>
					</tr>
				</table></td>
		</tr>
	</table> <br /> 
</span>

<!-- 환불정보 끄 -->
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="center"><table width="50%" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td>
					<table width="100%" border="0" cellspacing="0" cellpadding="2" style="text-align: center;">
						<tr>
							<td>
								<a href="javascript:history.go(-1)" >
									<img src="/usr/images/res_btn_back.gif" width="114" height="36" >
								</a>
							</td>
						<c:if test="${recoveryYN=='Y' &&  !(list != null && list[0].refunds_pay != null)}">
							<td>
								<a href="#" onclick="recoveryData('R');" >
									<img src="/usr/images/cancel_rr.jpg" width="114" height="36" >
								</a>
							</td>
							<td>
								<a href="#" onclick="recoveryData('C');" >
									<img src="/usr/images/cancel_rc.jpg" width="114" height="36" >
								</a>
							</td>
						</c:if>
							
						</tr>
					</table>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
        <tr>
          <td height="3" bgcolor="#86ad29"></td>
        </tr>
        <tr>
          <td style="padding-top: 2px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top"><a href="javascript:partner_login('haebichi')"><img src="/usr/images/res_btn_partners.gif" width="73" height="21"></a></td>
                <td align="right">Comodo SSL 보안서버 적용 사이트입니다<br>
                  ⓒ 실시간 예약프로그램은 www.pensiontrip.com 에서 제공 합니다</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>

</form>
